package com.example.socketio.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.UUID;

//用户表
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
//    private Integer id;
    private String username;
    private String avata;
//    private String password;
    
    @Override
    public int hashCode() {
    	int result =0 ;
    	if(username!=null) result += username.hashCode();
    	if(avata!=null) result+=avata.hashCode();
    	return result;
    }
    @Override
    public String toString() {
    	return username+avata;
    }
}
